{% extends "base.html" %}

{% block external %}
  <script type="text/javascript" src="/site_media/search.js"></script>
{% endblock %}

{% block title %}Search Bookmarks{% endblock %}
{% block head %}Search Bookmarks{% endblock %}>


function search_submit() {
  var query = $("#id_query").val();
  $("#search-results").load("/search/?ajax&query=" + encodeURIComponent(query));
  return false;
}
$(document).ready(function () {
  $("#search-form").submit(search_submit);
});